\hypertarget{xlabelpixmap_8h_source}{}\doxysection{xlabelpixmap.\+h}
\mbox{\hyperlink{xlabelpixmap_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef XLABELPIXMAP\_H}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define XLABELPIXMAP\_H}}
\DoxyCodeLine{3 }
\DoxyCodeLine{4 \textcolor{preprocessor}{\#include <QLabel>}}
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <QPainter>}}
\DoxyCodeLine{6 \textcolor{preprocessor}{\#include <QMouseEvent>}}
\DoxyCodeLine{7 \textcolor{preprocessor}{\#include <QApplication>}}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xnamespace_8h}{xnamespace.h}}"{}}}
\DoxyCodeLine{10 }
\DoxyCodeLine{11 QT\_BEGIN\_NAMESPACE}
\DoxyCodeLine{12 }
\DoxyCodeLine{13 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_label_pixmap_private}{XLabelPixmapPrivate}};}
\DoxyCodeLine{14 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_label_pixmap}{XLabelPixmap}} : \textcolor{keyword}{public} QLabel}
\DoxyCodeLine{15 \{}
\DoxyCodeLine{16     Q\_OBJECT}
\DoxyCodeLine{17 }
\DoxyCodeLine{18     Q\_PROPERTY(QColor \mbox{\hyperlink{class_x_label_pixmap_abc880080eb9630ee99079c547b6a3c6a}{borderColor}} READ \mbox{\hyperlink{class_x_label_pixmap_a820eb8eb9704f2e541d11451cdb73ef0}{getBorderColor}} WRITE \mbox{\hyperlink{class_x_label_pixmap_acd3607f637733c8e4c5542557dda26c9}{setBorderColor}})}
\DoxyCodeLine{19     Q\_PROPERTY(\textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_label_pixmap_a0e5bdd955a3384143f7bc92829e86ffa}{borderWidth}} READ \mbox{\hyperlink{class_x_label_pixmap_adbdca3c51642f55905e1c7a0c0074e04}{getBorderWidth}} WRITE \mbox{\hyperlink{class_x_label_pixmap_a322f1df056454f3cdb5ed1da3f917cfe}{setBorderWidth}})}
\DoxyCodeLine{20     Q\_PROPERTY(\textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_label_pixmap_aefe4672781492845d7d690bb84f2b460}{borderRadius}} READ \mbox{\hyperlink{class_x_label_pixmap_ab4c4fc5484c01eeb49ad55af6afc9a1a}{getBorderRadius}} WRITE \mbox{\hyperlink{class_x_label_pixmap_a24b9691349bcac87ce281f3bdbb72a01}{setBorderRadius}})}
\DoxyCodeLine{21     Q\_PROPERTY(QColor \mbox{\hyperlink{class_x_label_pixmap_a59c1601b4dca98d7226a55dba6ba2003}{labelBgColor}} READ \mbox{\hyperlink{class_x_label_pixmap_a4930e84ebc98e87649e2df80271357c5}{getLabelBgColor}} WRITE \mbox{\hyperlink{class_x_label_pixmap_ad663e7a51bb1be8fa911555dff2bd235}{setLabelBgColor}})}
\DoxyCodeLine{22 }
\DoxyCodeLine{23     Q\_PROPERTY(QPixmap \mbox{\hyperlink{class_x_label_pixmap_ab57abf302c29459d48eb4dd58a1cfba5}{displayPixmap}} READ \mbox{\hyperlink{class_x_label_pixmap_a5ab3356f53414ea5151bda18a7a0884b}{getDisplayPixmap}} WRITE \mbox{\hyperlink{class_x_label_pixmap_ac6b3ff664a697ad41d208b65afe5b9ac}{setDisplayPixmap}})}
\DoxyCodeLine{24     Q\_PROPERTY(\textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_label_pixmap_ac53db46cbbc38dd085690b0771cc82bb}{displayEnable}} READ \mbox{\hyperlink{class_x_label_pixmap_a4f95bd31687fdab6428e70c39298bd6e}{getDisplayEnable}} WRITE \mbox{\hyperlink{class_x_label_pixmap_a9a2d62364b099517bc3a41871b192d13}{setDisplayEnable}})}
\DoxyCodeLine{25 }
\DoxyCodeLine{26 \textcolor{keyword}{public}:}
\DoxyCodeLine{27     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_label_pixmap_af5b793fce375a1aa60006605718f820d}{XLabelPixmap}}(QWidget *parent = \textcolor{keyword}{nullptr}, Qt::WindowFlags f=Qt::WindowFlags());}
\DoxyCodeLine{28     \mbox{\hyperlink{class_x_label_pixmap_ad63409ce91f1a398e62f7c648b5f6bef}{\string~XLabelPixmap}}();}
\DoxyCodeLine{29 }
\DoxyCodeLine{30     \textcolor{comment}{/* Property Interface */}}
\DoxyCodeLine{31     QColor \mbox{\hyperlink{class_x_label_pixmap_a820eb8eb9704f2e541d11451cdb73ef0}{getBorderColor}}() \textcolor{keyword}{const};}
\DoxyCodeLine{32     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_acd3607f637733c8e4c5542557dda26c9}{setBorderColor}}(\textcolor{keyword}{const} QColor \&color);}
\DoxyCodeLine{33 }
\DoxyCodeLine{34     \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_label_pixmap_adbdca3c51642f55905e1c7a0c0074e04}{getBorderWidth}}() \textcolor{keyword}{const};}
\DoxyCodeLine{35     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a322f1df056454f3cdb5ed1da3f917cfe}{setBorderWidth}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{36 }
\DoxyCodeLine{37     \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_label_pixmap_ab4c4fc5484c01eeb49ad55af6afc9a1a}{getBorderRadius}}() \textcolor{keyword}{const};}
\DoxyCodeLine{38     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a24b9691349bcac87ce281f3bdbb72a01}{setBorderRadius}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{39 }
\DoxyCodeLine{40     QColor \mbox{\hyperlink{class_x_label_pixmap_a4930e84ebc98e87649e2df80271357c5}{getLabelBgColor}}() \textcolor{keyword}{const};}
\DoxyCodeLine{41     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_ad663e7a51bb1be8fa911555dff2bd235}{setLabelBgColor}}(\textcolor{keyword}{const} QColor \&color);}
\DoxyCodeLine{42 }
\DoxyCodeLine{43     QPixmap \mbox{\hyperlink{class_x_label_pixmap_a5ab3356f53414ea5151bda18a7a0884b}{getDisplayPixmap}}() \textcolor{keyword}{const};}
\DoxyCodeLine{44     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_ac6b3ff664a697ad41d208b65afe5b9ac}{setDisplayPixmap}}(QPixmap \&pixmap);}
\DoxyCodeLine{45 }
\DoxyCodeLine{46     \textcolor{keywordtype}{bool} \mbox{\hyperlink{class_x_label_pixmap_a4f95bd31687fdab6428e70c39298bd6e}{getDisplayEnable}}() \textcolor{keyword}{const};}
\DoxyCodeLine{47     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a9a2d62364b099517bc3a41871b192d13}{setDisplayEnable}}(\textcolor{keywordtype}{bool});}
\DoxyCodeLine{48 }
\DoxyCodeLine{49 \textcolor{keyword}{protected}:}
\DoxyCodeLine{50     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a7097b71436f5de05ce7f90dcbacd317d}{paintEvent}}(QPaintEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{51     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a49afd97b2573a48cd835c14aee125548}{drawBorder}}(QPainter *painter);}
\DoxyCodeLine{52     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a4cb6f6001bde58f9709d83ace56c42e0}{drawBg}}(QPainter *painter);}
\DoxyCodeLine{53 }
\DoxyCodeLine{54     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_adf04e636b06672e0811fcc53d2c959c4}{enterEvent}}(QEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{55     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_aa323b88d8b79c5b84f2b5ada52542d26}{leaveEvent}}(QEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{56     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_aef412e4f5070db96aeb806b81c344f2c}{mousePressEvent}}(QMouseEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{57     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a54dbaccaa4570babafcabac1722dce70}{mouseReleaseEvent}}(QMouseEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{58     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_label_pixmap_a40227217d68a6372438f79a157bb2bc2}{mouseMoveEvent}}(QMouseEvent *ev) \textcolor{keyword}{override};}
\DoxyCodeLine{59 }
\DoxyCodeLine{60 \textcolor{keyword}{private}:}
\DoxyCodeLine{61     Q\_DISABLE\_COPY(\mbox{\hyperlink{class_x_label_pixmap}{XLabelPixmap}})}
\DoxyCodeLine{62     \mbox{\hyperlink{class_x_label_pixmap_private}{XLabelPixmapPrivate}} *\mbox{\hyperlink{class_x_label_pixmap_a66af67b537a4243c9fe04888a1203c29}{d}};}
\DoxyCodeLine{63 \};}
\DoxyCodeLine{64 }
\DoxyCodeLine{65 QT\_END\_NAMESPACE}
\DoxyCodeLine{66 }
\DoxyCodeLine{67 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// XLABELPIXMAP\_H}}

\end{DoxyCode}
